package NG::Gen::Users::Auth::Password;
use strict;
use warnings;
use utf8;

use NG::Gen::Users::Auth::Base;
our @ISA = qw(NG::Gen::Users::Auth::Base);

sub check {
	my $self = shift;
	my $data = shift;
	if(
	$data->{login} eq $self->{record}->auth_data->{login}
	&& $data->{password} eq $self->{record}->auth_data->{password}){
		return 0;
	}else{
		return "не подходит логин и пароль";
	}
}
1;
